#region (c) 2014 THN Solutions LLC. - All rights reserved
/*
THN MVC MODULE FOR THN WEB SERVER

Copyright (c) 2014, THN Solutions LLC. ( www.ThnSolutions.com )
Author: Nguyễn, M. Hải                 ( www.Minh-Hai.com     )
All rights reserved.

This library is dual-licensed.
  + For use in commercial software, please obtain a commercial license from THN Solutions LLC.    

  + For use in free software, this library is licensed under GPL version 3. A summary of 
	GPLv3 is listed below. You should also find a copy of GPLv3 as file License_GPLv3.txt 
	included with the source-code files.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 3 as published by
    the Free Software Foundation  of the License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#endregion

#region Record of Change
//             							CHANGE HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | DEVELOPER  | DESCRIPTION                                              |
// -------------------------------------------------------------------------------------
// | 14-Apr-13 | HaiNM      | First creation.                                          |
// -------------------------------------------------------------------------------------
//
#endregion

#region Record of Audit
//             							REVIEW HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | REVIEWER   | NOTES                                                    |
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
//
#endregion

#region Using directives
using System;

using Thn;
#endregion

namespace Thn.Web.Razor
{
    /// <summary>
    /// Arguments used by <see cref="RazorEngine"/> in compiling.
    /// </summary>
#if DEBUG || TESTING
    public
#else
    public
#endif
 class RazorCompileArgs
    {
        #region Fields
        #endregion

        #region Properties

        #region Generated Namespace
        private string mGeneratedNamespace;
        /// <summary>
        /// Gets or sets namespace of generated code.
        /// </summary>
        public string GeneratedNamespace
        {
            get { return mGeneratedNamespace; }
            set { mGeneratedNamespace = value; }
        }
        #endregion

        #region Generated Class
        private string mGeneratedClass;
        /// <summary>
        /// Gets or sets class name of the generated code.
        /// </summary>
        public string GeneratedClassName
        {
            get { return mGeneratedClass; }
            set { mGeneratedClass = value; }
        }
        #endregion

        #region Compile To Memory
        private bool mCompileToMemory;
        /// <summary>
        /// Gets or sets whether the code shall be compiled to memory or to disk.
        /// </summary>
        public bool CompileToMemory
        {
            get { return mCompileToMemory; }
            set { mCompileToMemory = value; }
        }
        #endregion

        #region Output Assembly Path
        private string mOutputAssemblyPath;
        /// <summary>
        /// Gets or sets the path for generated assembly if compile to memory is false.
        /// </summary>
        public string OutputAssemblyPath
        {
            get { return mOutputAssemblyPath; }
            set { mOutputAssemblyPath = value; }
        }
        #endregion

        #region Generate Code As Text
        private bool mGenerateCodeAsText;
        /// <summary>
        /// Gets or sets whether codes shall be generated as text in the returned result as well.
        /// <para>Default is false.</para>
        /// </summary>
        public bool GenerateCodeAsText
        {
            get { return mGenerateCodeAsText; }
            set { mGenerateCodeAsText = value; }
        }
        #endregion
        
        #endregion

        #region Constructors
        /// <summary>
        /// Create a new instance.
        /// </summary>
        public RazorCompileArgs()
            : base()
        { }
        #endregion
    }
}
